package com.gxa.xiaoucomeshome.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Site implements Serializable {
    private Integer site_id;
    private String site_name;
    private String site_phone;
    private String site_spare_phone;
    private String site_desc;
//    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'",timezone = "GMT+8")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date site_start_time;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date site_end_time;
    private String site_location;
    private String site_address;
    private String site_ambient_desc;//常温产品时效描述
    private Double site_ambient_range;
    private Integer site_ambient_state;
    private String site_fresh_desc;//生鲜产品时效描述
    private Double site_fresh_range;
    private Integer site_fresh_state;
    private Integer site_state;
    private Integer site_sta;
}
